import request from '@/utils/request'

// 查询来信须知列表
export function listInstructions(query) {
  return request({
    url: '/wms/instructions/list',
    method: 'get',
    params: query
  })
}

// 查询来信须知详细
export function getInstructions(id) {
  return request({
    url: '/wms/instructions/' + id,
    method: 'get'
  })
}

// 新增来信须知
export function addInstructions(data) {
  return request({
    url: '/wms/instructions',
    method: 'post',
    data: data
  })
}

// 修改来信须知
export function updateInstructions(data) {
  return request({
    url: '/wms/instructions',
    method: 'put',
    data: data
  })
}

// 删除来信须知
export function delInstructions(id) {
  return request({
    url: '/wms/instructions/' + id,
    method: 'delete'
  })
}
